
@import '~@/assets/scss/function.scss';

.preview {
  margin-top: 48px;
  // background: #FFFFFF;
  .top {
    z-index: 3;
    color: #999999;
    .repay_amount {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      .desc {
        font-size: 28px;
        line-height: 32px;
        margin-top: 48px;
      }
      .amount {
        font-size: 80px;
        font-weight: bold;
        display: flex;
        align-items: flex-start;
        position: relative;
        color: #EC5958;
        margin-top: 16px;
        .amount-text {
          margin-left: 20px;
        }
        .num-question {
          width: 44px;
          height: 44px;
          background: url('~@/assets/imgs/icon/icon_questionMark.png') center center no-repeat;
          background-size: cover;
          position: absolute;
          right: -54px;
          top: 50%;
          transform: translateY(-50%);
        }
      }
    }
  }

  .content-wrapper {
    position: relative;
    margin-top: 48px;
    z-index: 2;

    .repay_type {
      position: relative;
      font-size: 28px;
      font-weight: 600;
      line-height: 1;
      padding: 24px 0 22px 0;
      background: #fff;
      //border-bottom: 2px solid #FAFAFA;
      &::after {
        content: '';
        position: absolute;
        top: -6px;
        left: -10px;
        right: -10px;
        height: 12px;
        background-color: #EC5958;
        border-radius: 6px;
        z-index: -1;
      }

      & > div {
        display: flex;
        align-items: center;
        margin: 0 22px 0 80px;
        color: #333;
        &:not(:last-child) {
          margin-bottom: 16px;
        }
      }
      .Biller {
        color: #FAD84E;
        font-weight: normal;
      }
      .biller {
        color: #EC5958;
      }
      .label {
        width: 190px;
        // color: #666666;
      }
      .value {
        flex: 1;
        // color: #333333;
      }
      .btn_copy {
        color: #FFFFFF;
        font-size: 24px;
        font-weight: 500;
        width: 136px;
        height: 48px;
        line-height: 48px;
        text-align: center;
        background: #EC5958;
        border-radius: 40px;
        margin-left: 10px;
      }
    }
  }

  .content {
    background-color: #FFFFFF;
    .sort {
      color: #222222;
      font-size: 32px;
      height: 100px;
      padding: 0 30px;
      border-bottom: 2px solid #FAFAFA;

      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      .icon-question {
        //background: url(~@/assets/imgs/icon/icon_questionMark.png) no-repeat right center;
        //background-size: 38px 38px;
        //padding: 0 50px 0 0;
      }
      .question-modal {
        color: #fff;
        font-size: 24px;
        width: 460px;
        padding: 20px;
        line-height: 46px;
        background: $mainColor;
        border-radius: 20px;
        position: absolute;
        top: 88px;
        left: 50%;
        margin: 0 0 0 -340px;
        z-index: 99999;

        div {
          display: flex;
          align-items: center;
          justify-content: space-between;
          text-align: left;

          p:last-child {
            text-align: right;
          }
        }

        i {
          display: block;
          width: 0;
          height: 0;
          border-bottom: 16px solid $mainColor;
          border-top: none;
          border-left: 16px solid transparent;
          border-right: 16px solid transparent;

          position: absolute;
          top: -14px;
          left: 50%;
          margin: 0 0 0 -80px;
        }
      }
    }
  }

  .toggle {
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #FAFAFA;
    background-color: #FFFFFF;
    color: #999999;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    height: 80px;
    line-height: 80px;
    &.opening {
      i {
        transform: rotate(180Deg);
      }
    }
    i {
      display: inline-block;
      vertical-align: middle;
      background: url('~@/assets/imgs/icon/icon_bottom_2.png') no-repeat center;
      background-size: 32px 32px;
      width: 32px;
      height: 32px;
      margin-left: 20px;
    }
  }

  .mutliaPeriodfMode{
    padding: 0 30px;
    .wrap{
      .sort{
        color: #777;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        height: 104px;
        font-size: 28px;
        padding-top: 20px;
        line-height: 34px;
        .num{
          text-align: right;
          .amount{
            font-size: 28px;
            line-height: 44px;
            color: #333333;
          }
        }
      }
    }
  }
  .coupon-radio{
    display: flex;
    justify-content: center;
    align-items: center;
    &.active {
      .icon{
        i {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translateX(-50%) translateY(-50%);
          content: '';
          display: block;
          border-radius: 50%;
          width: 18px;
          height: 18px;
          background:  #50C74A;
        }
      }
    }
    .icon {
      //background: url(~@/assets/imgs/icon-radio-default.png) no-repeat;
      //background-size: 36px 36px;
      height: 36px;
      width: 36px;
      margin-right: 20px;
      border-radius: 50%;
      background: #D2F0D0;
      position: relative;
      i {
        display: none
      }
    }
  }

}
.mask {
  background-color:rgba(0,0,0,.4);
}

.coupon_list, .coupon_list_dialog {
  border-bottom: 1px solid #eee;
  margin: 0 30px 16px;
  padding: 20px 0 10px;
  .sort{
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    line-height: 40px;
  }
  .checkbox{
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #D2F0D0;
    //border: 1px solid #CCCCCC;
    border-radius: 50%;
    margin-right: 26px;
    vertical-align: middle;
    position: relative;
    &.checked::before{
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%,-50%);
      background: #50C74A;
      width: 20px;
      height: 20px;
      border-radius: 50%;
    }
  }
  .expire_time{
    font-size: 24px;
    color: #999;
    line-height: 34px;
    text-align: right;
    margin-bottom: 20px;
  }
  .select_arrow {
    color: #999;
  }
  .arrow_right {
    @include v-arrow('right', 1px, 16px);
  }
}

.coupon_list_dialog {
  background: #fff;
  padding: 50px 30px 0;
  border-radius: 12px;
  border: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 590px;
  margin: 0;
  ul {
    margin-bottom: 50px;
    max-height: 300px;
    overflow: auto;
  }
  .closed{
    position: absolute;
    bottom: -100px;
    width: 100%;
    left: 0;
    height: 48px;
    background: url("~@/assets/imgs/icon-close.png") center/contain no-repeat;
  }
  .btn_wrap {
    display: flex;
    justify-content: space-between;
    margin: 16px -30px 0;
    border-top: 1px solid #ddd;
    position: relative;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    &::before {
      content: "";
      height: 100%;
      width: 1px;
      background: #ddd;
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
    }
    button {
      width: 50%;
      background: #fff;
      border: none;
      font-size: 32px;
      height: 88px;
      line-height: 88px;
    }
    .btn_confirm {
      color: $mainColor;
      font-weight: bold;
      &.disabled {
        color: #999;
      }
    }
  }
}

.use_coupon{
  background: #fff;
  position: fixed;
  bottom: 0;
  left: 50%;
  width: $bodyWidth;
  margin-left: -($bodyWidth / 2);
  padding: 16px;
  .btn_use_coupon{
    background: $primary;
    width: 100%;
    color: #fff;
    height: 88px;
    line-height: 88px;
    border-radius: 44px;
    font-size: 36px;
    font-weight: 500;
    opacity: 0.5;
    &.active{
      opacity: 1;
    }
  }
}

.modal_repay_amount_detail {
  position: fixed;
  .question-modal {
    width: 628px;
    padding: 50px;
    background: #fff;
    border-radius: 20px;
    position: absolute;
    top: 336px;
    left: 50%;
    transform: translate(-50%, 0);
    div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      line-height: 28px;
      font-size: 24px;
      span {
        color: #666;
      }
      span + span {
        color: #333;
        font-weight: bold;
      }
    }
    div + div {
      margin-top: 24px;
    }
    .icon_close {
      content: "";
      width: 42px;
      height: 42px;
      background: url("~@/assets/imgs/icon-close-dark.png") center/contain no-repeat;
      position: absolute;
      top: -62px;
      right: 0;
    }
  }
}
